{% extends "myapp/base.html" %}
{% load bootstrap3 %}
<h1>{{ question.question_text }}</h1>
{%block bootstrap3_content%}
<div class="container">
{# Display a form #}
<form role="form" action="/url/to/submit/" method="post" class="form">
  {% csrf_token %}
  {% bootstrap_form form layout="horizontal" %}
  {% buttons %}
    <button type="submit" class="btn btn-primary">
      {% bootstrap_icon "star" %} Submit
    </button>
  {% endbuttons %}
</form>

{# Read the documentation for more information #}


{% if error_message %}
    <p><strong>{{ error_message }}</strong></p>

{% endif %}
<form action="{% url 'myapp:vote' question.id%}" method="post" class="from">
    {% csrf_token %}
    {% for choice in question.choice_set.all %}
    <input type="radio" name="choice" id="choice{{ forloop.counter }}"
        value="{{ choice.id }}" />
    <label for="choice{{ forloop.counter }}">{{ choice.choice_text }}</label>
    <br/>
    {% endfor %}
    {% buttons %}
        <button type="submit" class="btn btn-primary">
            {% bootstrap_icon "star" %} Vote
        </button>
    {% endbuttons%}
</form>
</div>
{%endblock%}
